package cn.itcast.ks.api;

import cn.itcast.ks.common.ResponseResult;
import cn.itcast.ks.pojo.dtos.AddIntegralDto;
import cn.itcast.ks.pojo.dtos.TeacherDto;
import cn.itcast.ks.pojo.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@Api(description = "用户模块")
public interface UserControllerApi {

    @ApiOperation("根据班级ID查询所有的学生")
    public ResponseResult findByClassId();

    @ApiOperation("为用户添加积分")
    public ResponseResult addIntegral(AddIntegralDto dto);

    @ApiOperation("导入学生信息")
    public ResponseResult importUser(MultipartFile file) throws IOException;

    @ApiOperation("导出学生用户名密码")
    public ResponseResult exportUser(HttpServletResponse response, Integer classId) throws IOException;

    @ApiOperation("重置小组积分")
    public ResponseResult resetGScoreByGroupId(Integer classId);

    @ApiOperation("注册教师账号 / 必须为admin 账户才能注册")
    public ResponseResult registerTeacher(TeacherDto dto);


}
